package com.haidechizi.longpolling.event.listener;

import com.haidechizi.longpolling.event.Event;

import java.util.List;

/**
 * @author wangdejun
 * @create 2021/2/25 13:35
 */
public interface EventListener {

    /**
     * 感兴趣的时间
     *
     * @return
     */
    List<Class<? extends Event>> interests();

    /**
     * 触发事件
     *
     * @param event
     */
    void onEvent(Event event);
}
